package com.iawz.snailoauth.user.service;

import com.iawz.snailoauth.user.entity.User;
import com.iawz.snailoauth.user.repository.UserRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@AllArgsConstructor
@Service
public class UserService {
    private UserRepository userRepository;

    public List<User> findAll(){
        return userRepository.findAll();
    }
}
